package com.zp.business.api.diagnosis;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zp.common.core.entity.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;


/**
 * 患者诊断表对象 his_diagnosis
 *
 * @author zhang peng
 * @ date 2024-01-01
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("his_diagnosis")
public class HisDiagnosis extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id")
    private String id;

    /**
     * 父级ID集合
     */
    private String parentIds;

    /**
     * 父级ID
     */
    private String parentId;

    /**
     * 诊断类型
     */
    private String type;

    /**
     * 1.主诊断，2.辅诊断
     */
    private String diagnosisType;

    /**
     * icd10名称
     */
    private String icdName;

    /**
     * icd10编码
     */
    private String icdCode;

    /**
     * 手术
     */
    private String operation;

    /**
     * 效果
     */
    private String effect;

    /**
     * 描述
     */
    private String description;

    /**
     * 依据
     */
    private String basis;

    /**
     * 住院/门诊 字典：clinic_or_visit
     */
    private String inoroutFlag;

    /**
     * 门诊ID
     */
    private String clinicId;

    /**
     * 入院情况
     */
    private String situation;

    /**
     * 住院ID
     */
    private String visitId;

    /**
     * 诊断医生
     */
    private String diagnosisDoctor;

    /**
     * 机构ID
     */
    private String orgId;

    /**
     * 标志
     */
    @TableLogic
    private String delFlag;

    public void initEntity () {
        this.delFlag = "0";
    }

    /**
     * 备注信息
     */
    private String remarks;

    /**
     * 病理号
     */
    private String pathologyNo;

    /**
     * 病理诊断
     */
    private String pathologicDiagnosis;

    /**
     * $column.columnComment
     */
    private String patientId;

    /**
     * $column.columnComment
     */
    private Integer sort;

    /**
     * 熔断后异常信息
     */
    @TableField(exist = false)
    private String exceptionCode;


}
